<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\model\mongo;

class MongoKsUserVideoModel extends MongoInfoModel
{
    /**
     * @var int 已删除
     */
    public const NEW_STATUS_DELETE = 0;

    /**
     * @var int 正常
     */
    public const NEW_STATUS_NORMAL = 1;

    /**
     * @var array 非原生
     */
    public const NATIVE_NO = [0, 2];

    /**
     * @var int 删除状态-已删除
     */
    public const DELETE_DISABLE = 1;

    /**
     * @var int 删除状态-未删除
     */
    public const DELETE_ENABLE = 0;

    protected $connection = 'mongodb';

    protected $name = 'ks_user_video';

    protected $pk = '_id';

    /**
     * 修复字段.
     * @return array|string[]
     */
    public function getRepairField(): array
    {
        return [
            'user_id',
            'photo_id',
        ];
    }
}
